Skip to content

Conversation

yuriyivanenko
Copy link

App is able to add items to a cart as well as filter down using categories. Dark/Light mode also work.


const updateCart = (e) => {
const action = e.target.innerHTML
console.log('Func ran', e.target.innerHTML)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log('Func ran', e.target.innerHTML)

const [cart, setCart] = useState(items)

const updateCart = (e) => {
const action = e.target.innerHTML

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const action = e.target.innerHTML
const buttonText = e.target.innerHTML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants